using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SerialPortCommunicationProject.Tools
{
    public interface ICommunication:IDisposable
    {
        byte[] SendBuffer { get; }
        byte[] ReceiveBuffer { get; }
        bool Open();

        bool Close();

        void DataReceive();

        void Send(byte[] sendBuffer);

        bool IsOpen { get; set; }
    }
}
